package com.block.api.reqbean;

import com.block.test.reqbean.source.CheckUserInfo;
import com.block.test.reqbean.sys.ReqSendSms;
import com.block.test.reqbean.sys.ReqVerifySms;

import java.util.HashMap;
import java.util.Map;

public class ReqBeanUtil {
    private static  Map<String,Class> BEAN=new HashMap<>(10);
    static {
        BEAN.put("/api/sys/sendsmscode", ReqSendSms.class);
        BEAN.put("/api/sys/sendemailcode", ReqSendSms.class);
        BEAN.put("/api/sys/verifysmscode", ReqVerifySms.class);


        BEAN.put("/apisource/apib/checkUser", CheckUserInfo.class);
        BEAN.put("/apisource/apib/registerUser", CheckUserInfo.class);

    }
    public  static  Class getBeanClass(String uri){
        Class c= BEAN.get(uri);
        //不让外部报错。返回一个object 。
        if(c==null){
            return Object.class;
        }else{
            return c;
        }

    }
}
